home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
rexxgdb2.zip
/
G2Hx.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-08-10
|
1KB
|
66 lines
/* rexx */
signal on syntax name error
signal on halt name error
signal on failure name error
'@echo off'
'cls'
say
say 'G2H --- Testing REXXGDB2.DLL HTML generic tag creator function'
say ' (G2H)'
say 'Simon Husin (husin@ibm.net)'
say 'Kent, Washington, U.S.A., Nov 1996 - Aug 1997'
say
sq6 = "Select firstnme||' '||midinit||' '||lastname from employee where empno = '000130'"
sq8 = "Select firstnme||' '||midinit||' '||lastname from employee where empno = '000140'"
htmlfn = 'G22HTML.HTM'
nullchar = ''
varcharlen = ''
show_border = '1'
show_rownum = '1'
lhow_header = '1'
if rxfuncquery('g2LoadFuncs') then do
say
say 'Loading REXXGDB2 Functions...'
call rxfuncadd 'g2LoadFuncs', 'REXXGDB2', 'g2LoadFuncs'
say 'Result =' g2LoadFuncs()
end
say
say 'Connecting to SAMPLE database...'
call g2connectshare 'SAMPLE'
say
'@del' htmlfn '1>NUL 2>NUL'
call time 'R'
call g2h htmlfn, 1, 'Font change', 'BASEFONT Size=20'
call g2h htmlfn, 1, 'Very Big', 'h1'
call g2h htmlfn, , g2selectone('sq6')
call g2h htmlfn, , g2selectone('sq8'), 'h3'
call g2h htmlfn, 1, '<BR>'
elapse = time('E')
'@netscape file:///'htmlfn
/* '@explore -q' htmlfn */
say 'Execution time' elapse
say
say 'Commiting...'
call g2commit
return 0
error:
say 'Error detected at line' SIGL
return 10
syntax:
say 'Syntax error detected at line' SIGL
return 20